import { defineStore } from 'pinia'

export const useUtilStore = defineStore(
  'chat-util',
  () => {
    const isFUllScreen = ref(false)

    const toggleFullScreen = () => {
        const layout = document.querySelector('.layout')!
        layout.classList.toggle('fullScreen')
        isFUllScreen.value = !isFUllScreen.value
    }

    return {
      isFUllScreen,
      toggleFullScreen
    }
  },
  {
    persist: true,
  },
)
